package org.zhu.back.mysqlBackUp;

import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by yingzhi zhu on 2017/9/14.
 */
public class Main {
//    public static void main(String[] args) throws IOException {
//        BackUtil backUtil = new BackUtil()
//                .setMysqlHome("F:\\java-andriod\\mysql-5.6.24-win32\\bin\\")
//                .setBackCommand("localhost","root","olive888","sanploy_fuping");
//        backUtil.backUp("F:\\",getRadomName());
//
//    }
//
//    public static String getRadomName(){
//        Date currentTime = new Date();
//        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
//        return formatter.format(currentTime)+".sql";
//    }

    public static void main(String[] args) {
        String[] strings = new String[]{"asd", "asd", "wqe"};
        String as = "as21d|a12sd|asd21|a21sd|a12sd";
        String[] s = as.split("\\|");
        System.out.println(s[1]);
    }
}
